﻿using JNPF.Utils;
using System.Collections.Generic;

namespace JNPF.Basics.Models
{
    public class LoginCurrentUserOutput
    {
        public List<MenuModel> menuList { get; set; }
        public object userInfo { get; set; }
        public List<PermissionModel> permissionList { get; set; }


    }

    public class MenuModel : TreeModel
    {
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string fullName { get; set; }
        /// <summary>
        /// 菜单编码
        /// </summary>
        public string enCode { get; set; }
        /// <summary>
        /// 菜单图标
        /// </summary>
        public string icon { get; set; }
        /// <summary>
        /// 菜单分类【1-类别、2-页面】
        /// </summary>
        public int? type { get; set; }
        /// <summary>
        /// 菜单地址
        /// </summary>
        public string urlAddress { get; set; }
        /// <summary>
        /// 链接目标
        /// </summary>
        public string linkTarget { get; set; }

        /// <summary>
        /// 菜单分类：Web、App
        /// </summary>

        public string category { get; set; }
        public string propertyJson { get; set; }
        public long? sortCode { get; set; }
    }

    public class PermissionModel
    {
        public string modelId { get; set; }
        public string moduleName { get; set; }
        public List<AuthorizeModuleColumnModelNew> column { get; set; }
        public List<AuthorizeModuleButtonModelNew> button { get; set; }
        public List<AuthorizeModuleResourceModelNew> resource { get; set; }
    }
}
